package org.skyer.third.gateway.api.constant.ks;



import java.util.HashMap;
import java.util.Map;

public class KuaiShouOrderStatusConstant {

    //10-待付款
    public final static Integer WAIT_PAY = 10 ;
    //30-已付款
    public final static Integer ALREADY_PAY = 30;
    //40-已发货
    public final static Integer SHIPPED = 40;
    //50-已签收
    public final static Integer SIGNED =50;
    //70-订单成功
    public final static Integer ORDER_SUCCESS = 70;
    //80-订单失败
    public final static Integer ORDER_FAILED = 80;

    /**
     * 退款状态
     * [10, "买家已经申请退款，等待卖家同意"] [12, "卖家已拒绝，等待买家处理"] [20, "协商纠纷，等待平台处理"]
     * [30, "卖家已经同意退款，等待买家退货"] [40, "买家已经退货，等待卖家确认收货"] [45, "卖家已经发货，等待买家确认收货"]
     * [50, "卖家已经同意退款，等待系统执行退款"] [60, "退款成功"] [70, "退款关闭"]
     */
    //[10, "买家已经申请退款，等待卖家同意"]
    public final static Integer APPLAY_REFUND = 10;
    //[12, "卖家已拒绝，等待买家处理"]
    public final static Integer REFUSE_REFUND = 12;
    //[20, "协商纠纷，等待平台处理"]
    public final static Integer PLATFORM_PROCESS_REFUND = 20;
    //[30, "卖家已经同意退款，等待买家退货"]
    public final static Integer AGREE_REFUND_WAIT_RETURNS = 30;
    //[40, "买家已经退货，等待卖家确认收货"]
    public final static Integer RETURNED_WAIT_CONFIRM = 40;
    //[45, "卖家已经发货，等待买家确认收货"]
    public final static Integer SHIPPED_WAIT_RECEIPT = 45;
    //[50, "卖家已经同意退款，等待系统执行退款"]
    public final static Integer AGREE_REFUND_WAIT_IMPL = 50;
    // [60, "退款成功"]
    public final static Integer REFUND_SUCCESS = 60;
    //[70, "退款关闭"]
    public final static Integer REFUND_CLOSE = 70;



    public final static Map<String, Integer> KS_ORDER_STATUS_MAP = new HashMap() {
        {
            //20待发货
            put(10, 0);
            //40已发货
            put(30, 0);
            //50交易完成
            put(40, 0);
            //60交易关闭
            put(50, 0);
            put(70, 0);
            put(80, 0);

        }
    };



}

